package com.gao.modules.depart.vo;

import com.gao.modules.depart.pojo.SysDepart;
import lombok.Data;

import java.io.Serializable;

/**
 * @author anshenghui
 * @date 2021/11/15 22:52
 * @desc 封装登录过后返回详情数据的VO
 */
@Data
public class SysDepartLoginVo implements Serializable {

    private static final long serialVersionUID = 1L;

    private String departId;

    private String departName;

    private Integer level;

    private String parentIds;

    private String childrenIds;

    public SysDepartLoginVo() {

    }

    public SysDepartLoginVo(SysDepart sysDepart) {
        this.departId = sysDepart.getId();
        this.departName = sysDepart.getDepartName();
        this.level = sysDepart.getLevel();
        this.parentIds = sysDepart.getParentIds();
        this.childrenIds = sysDepart.getChildrenIds();
    }
}
